﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="taoTK.aspx.cs" Inherits="Admin_taoTK" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Ad/default.aspx"><img alt="back" src="../image/Back.png" /><p>Back</p></asp:HyperLink>--%>
    <div class="themTK">
        <div class="themmenu">
            <asp:Label ID="Label1" runat="server" Text="Username :"></asp:Label>
            <asp:TextBox ID="txtTaikhoan" runat="server" Width="110px"></asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Mã NV :"></asp:Label>
            <asp:TextBox ID="txtTaikhoan1" runat="server" Width="116px"></asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="Họ Tên :"></asp:Label>
            <asp:TextBox ID="txtTaikhoan2" runat="server" Width="110px"></asp:TextBox>
            <br />
            <asp:Label ID="Label4" runat="server" Text="Password :"></asp:Label>
            <asp:TextBox ID="txtTaikhoan3" runat="server" Width="110px"></asp:TextBox>
            <br />
            <asp:Button ID="butAdd1" runat="server" Text="Thêm" OnClick="butAdd_Click" />
            <asp:Label ID="add" runat="server" Text=""></asp:Label>
        </div>
        <div class="viewTK">
            <div class="danhsachTK">
                Danh sách Tài Khoản
            </div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
                <RowStyle BackColor="White" ForeColor="#003399" />
                <Columns>
                    <asp:BoundField DataField="MaUS" HeaderText="username" ReadOnly="True">
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="MaNV" HeaderText="Ma NV">
                        <ItemStyle Width="200px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="HoTen" HeaderText="HoTen">
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="MatKhau" HeaderText="Password">
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Quyen" HeaderText="Quyen">
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:BoundField>
                    <asp:CommandField CancelText="K Lưu" EditText="Sửa" ShowEditButton="True" UpdateText="Lưu" />
                    <asp:TemplateField>
                        <HeaderTemplate>
                                <asp:Button ID="butXoa" runat="server" onclick="butXoa_Click" Text="Xóa" 
                                    onclientclick="return (confirm('Bạn có muốn xóa không?'));" />
                            </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkXoa" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            </asp:GridView>
        </div>
        <asp:Label ID="tbl" runat="server" Text=""></asp:Label>
    </div>
</asp:Content>
